﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using BLToolkit.Mapping;
using BLToolkit.DataAccess;
using Entities.Admin;

namespace Entities.PBKT
{
	public class CauThu : BaseEntity<CauThu>
	{
		[MapField("MaCT"), PrimaryKey]
		public String MaCT { get; set; }
		[MapField("TenCT")]
		public String TenCauThu { get; set; }
		public String MaDT { get; set; }
		[MapIgnore]
		public String TenDT
		{
			get
			{
				return DoiTuyen.Objects.GetById(MaDT).TenDT;
			}
		}
		[MapIgnore]
		public int MaGD
		{
			get
			{
				return DoiTuyen.Objects.GetById(MaDT).MaGD;
			}
		}
		public int Tuoi { get; set; }
		public int SoAo { get; set; }
		public int TrangThai { get; set; }
		public int MaDiaChi { get; set; }
		public int SoBanThang { get; set; }
		[Association(ThisKey = "MaDiaChi", OtherKey = "IdDiaChi")]
		public String DiaChis
		{
			get { return DiaChi.Objects.GetById(MaDiaChi).ToString(); }

		}

	}
}
